//
//  LBKeshiCell.m
//  V-Learn
//
//  Created by Apple on 2019/1/16.
//  Copyright © 2019 yxk. All rights reserved.
//

#import "LBKeshiCell.h"

@implementation LBKeshiCell


+ (instancetype)cellWithTableView:(UITableView *)tableView{
    LBKeshiCell *cell = [tableView dequeueReusableCellWithIdentifier:@"LBKeshiCell"];
    if (cell == nil) {
        cell = [[LBKeshiCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"LBKeshiCell"];
    }
    tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
    return cell;
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // 点击cell的时候不要变色
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.backgroundColor = [UIColor whiteColor];
        
        // 布局子控件
        [self autoLayout];

    }
    return self;
}


- (void)autoLayout{
    
    UIImageView *arrowImageV = [[UIImageView alloc]init];
    self.arrowImageV = arrowImageV;
    arrowImageV.image = [UIImage imageNamed:@"girl"];
    [self.contentView addSubview:arrowImageV];
    arrowImageV.layer.cornerRadius = 0;
    arrowImageV.layer.masksToBounds = YES;
    [arrowImageV mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.bottom.mas_equalTo(0);
        make.left.mas_equalTo(15);
        make.right.mas_equalTo(-15);
    }];
}

@end
